package com.essence.grabiec104.grab.model;

import com.essence.common.model.Point;
import com.essence.common.model.Substation;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubstationInfoMapper {
    SubstationInfoMapper INSTANCE = Mappers.getMapper(SubstationInfoMapper.class);

    @Mapping(target = "slaveStation", ignore = true)
    Substation deepCopy(Substation substation);

    Point deepCopy(Point point);

    List<Substation> deepCopy(List<Substation> substations);
}
